package com.product.Service.impl;



import com.lin.product.Bean.Product;
import com.product.Service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class productServiceImpl implements ProductService {
    @Override
    public Product getProductById(Long id) {
        Product product = new Product();
        product.setProductId(id);
        product.setPrice(300.0D);
        product.setProductName("苹果"+id);
        product.setNum(3);

        log.info("获取商品信息：{}",id);
        System.out.println("被调用了");

        return product;
    }
}
